<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
 <head>
  <title> 个人中心 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="generator" content="editplus" />
  <meta name="author" content="guanqing" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <jsp:include page="../commons/header.jsp"></jsp:include>
  <script type="text/javascript" src="<%=request.getContextPath() %>/js/customer.js"></script>
 </head>

 <body>
    <jsp:include page="../commons/menu.jsp"></jsp:include>
	<div class="wrapMain">
		<div class="sideBar">
			<dl>
				<dt>会员中心</dt>
				<dd id="centerIndexSubMenu">
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/centerPage.jsp','mainContent');" class="manageIndex">中心首页</a>
				</dd>
				<dd>
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/personInfo.jsp','mainContent');" class="manageInfo">个人资料</a>
				</dd>
				<dd>
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/modifyPassword.jsp','mainContent');" class="managePassword">修改密码</a>
				</dd>
				<dt>交易管理</dt>
				<dd id="shoppingCartSubMenu">
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/shoppingCart.jsp','mainContent');" class="manageShopping">我的购物车</a>
				</dd>
				<dd>
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/order.jsp','mainContent');" class="manageOrder">我的订单</a>
				</dd>
				<dd>
				    <a href="javascript:void(0);" onclick="utils.loadPage('customer/myAddress.jsp','mainContent');" class="manageAddress">我的地址</a>
				</dd>
			</dl>
		</div>
		<div class="mainCnt" id="mainContent">
		</div>
	</div>
    <jsp:include page="../commons/footer.jsp"></jsp:include>
    <script type="text/javascript">
    	var func = utils.getUrlParameter("func");
    	if(func=="shoppingCart"){
    		$('#shoppingCartSubMenu').addClass("selected");
    		utils.loadPage('customer/shoppingCart.jsp','mainContent');
    	}else{
    		$('#centerIndexSubMenu').addClass("selected");
            utils.loadPage('customer/centerPage.jsp','mainContent');
    	}
       
        $('.sideBar dd').click(function(){
            $(this).addClass('selected').siblings().removeClass('selected');
        });
    </script>
 </body>
</html>
